package com.dr.cmdb.core.mapper;

import com.dr.cmdb.core.domain.ModelBaseRole;

   /**     
      * @ProjectName:    cmdb
      * @Package:        com.dr.cmdb.core.mapper
      * @Description:     java类作用描述 
      * @Author:            duanrui
      * @CreateDate:     2021/5/8 12:22
      * @Version:        1.0
      * 
Copyright: Copyright (c) 2021

* */
public interface ModelBaseRoleMapper {
    /**
     * delete by primary key
     * @param roleId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long roleId);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(ModelBaseRole record);

    /**
     * select by primary key
     * @param roleId primary key
     * @return object by primary key
     */
    ModelBaseRole selectByPrimaryKey(Long roleId);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(ModelBaseRole record);
}